Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODFrame


ChangeViewType

The ChangeViewType method changes the specified view type of this frame.

void ChangeViewType (in ODTypeToken viewType);
viewType
A tokenized string representing the view type to assign to this frame.
DISCUSSION
The viewType parameter must be the tokenized form of one of the view-type constants (kODViewAsFrame, kODViewAsSmallIcon, kODViewAsLargeIcon, or kODViewAsThumbnail). You can call the session object's Tokenize method to obtain a token corresponding to one of these constants.

Your part calls its embedded frame's ChangeViewType method to request that it use a new view type. This method in turn calls the ViewTypeChanged method of this frame's part to notify the part that its view type has changed. If the embedded part does not support the requested view type, it can pick a view type that it can support and then call its frame's SetViewType method to update the view type in the frame.

EXCEPTIONS
kODErrIllegalNullTokenInput
The viewType parameter is null.
SEE ALSO
The ODTypeToken type (page 877).
The ODFrame::GetViewType method (page 324).
The ODFrame::SetViewType method (page 339).
The ODPart::ViewTypeChanged method (page 551).
The ODSession::Tokenize method (page 622).
Listing 2-20 on page 72 in OpenDoc Cookbook.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help